﻿using IntelligentAgriculture.Domain.Entity;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    /// <summary>
    /// 种母配种仓储接口
    /// </summary>
    public interface IBreedingInfoRepository
    {
        /// <summary>
        /// 种母配种显示
        /// </summary>
        /// <returns>返回数据</returns>
        Task<List<Breedinginfo>> GetBreedinginfoAsync();

        /// <summary>
        /// 逻辑删除种母配种表
        /// </summary>
        /// <param name="breedId">主键id</param>
        /// <returns>受影响的行数</returns>
        Task<int> DeleteBreedingInfo(int breedId);


        /// <summary>
        /// 批量逻辑删除种母配种表
        /// </summary>
        /// <param name="breedIds">id</param>
        /// <returns>返回数据</returns>
        Task<int> DeleteRangeBreedingInfo(IEnumerable<int> breedIds);


        /// <summary>
        /// 添加种母配种数据
        /// </summary>
        /// <param name="inputs">实体</param>
        /// <returns>返回受影响的行数</returns>
        Task<int> AddBreedinginfoAsync(List<Breedinginfo> inputs);

        /// <summary>
        /// 种母配置修改批量
        /// </summary>
        /// <param name="breedinginfo"></param>
        /// <returns></returns>
        Task<int> UpdBreedinginfos(List<Breedinginfo> breedinginfo);
        /// <summary>
        /// 种母配置修改
        /// </summary>
        /// <param name="breedinginfo"></param>
        /// <returns></returns>
        Task<int> UpdBreedinginfo(Breedinginfo breedinginfo);

        /// <summary>
        /// 修改种母配种表
        /// </summary>
        /// <param name="breedinginfo">种母配种实体</param>
        /// <returns>受影响的行数</returns>
        //Task<int> UpdateAsync(Breedinginfo breedinginfo);

    }
}
